<!doctype html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.google.appengine.api.users.*" %>
<html lang="ko">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Button - Icons</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
    <script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
    <link rel="stylesheet" href="http://jqueryui.com/datepicker/resources/demos/style.css" />
    <script>
    </script>
</head>
<body>
<%
 	UserService userService = UserServiceFactory.getUserService();
 	if(userService.isUserLoggedIn()) {
 		User user = userService.getCurrentUser();
%>
	<%=user.getNickname()%>님 환영합니다.
	<select name="group" id="group">
		<option value="naraebiz">나라이비즈니스</option>
	</select>
	<a href="/group/groupForm.jsp">그룹추가</a>
	<a href="<%=userService.createLogoutURL(request.getRequestURI())%>">Logout</a>
<% 
	} else {
%>
	<a href="<%=userService.createLoginURL(request.getRequestURI())%>">Login</a>
	<% } %>
<!-- 
//아이콘
http://jquery-ui.googlecode.com/svn/tags/1.6rc5/tests/static/icons.html
 --> 
</body>
</html>